<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>选课界面</title>
</head>
<body>
    <form method="post" th:action="@{/Student/Lesson}">
        <label>选择课程：</label>
        <div th:each="lesson:${lessons}">
            <input name="checkLessons" type="checkbox" th:value="${lesson.name}"/><span th:text="${lesson.name}"></span><br>
        </div>
        <button>提交选课</button>
    </form>
</body>
</html>
